package com.huopaolan.yohuoshop.Mvp.View.Activity;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;

import com.huopaolan.yohuoshop.R;

public class CollectionActivity extends AppCompatActivity implements OnClickListener {
    private ImageView iv_collection_list_back;
    private RecyclerView collection_recycler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_collection);
        initView();
    }

    private void initView() {
        collection_recycler = findViewById(R.id.collection_recycler);
        iv_collection_list_back = findViewById(R.id.iv_collection_list_back);
        iv_collection_list_back.setOnClickListener(this);
    }

    @Override
    public void onStart() {
        Window window = getWindow();
        window.setStatusBarColor(Color.BLACK);
        super.onStart();
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_collection_list_back:
                finish();
                break;
        }
    }
}
